package com.my.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.my.entity.NightSpot;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface NightSpotMapper extends BaseMapper<NightSpot> {

    IPage<NightSpot> getList(IPage<NightSpot> page, @Param("ns") NightSpot nightSpot);

    List<NightSpot> getApiList(@Param("userId") Long userId, @Param("userType") Integer userType, @Param("classId") Long classId, @Param("confirm") boolean confirm);

    List<Map<String, Long>> getNotSpotUserId();

}
